<?php

namespace app\admin\model\fssy;

use think\Model;


class Areasensitivity extends Model
{





    // 表名
    protected $name = 'fssy_areasensitivity';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [];

    public function department()
    {
        // return $this->belongsTo('app\admin\model\dicts\Department', 'department_id', 'id', [], 'LEFT')->setEagerlyType(0);
        return $this->belongsTo('app\admin\model\dicts\Department', 'department_id')->setEagerlyType(0);
    }
}
